import pymongo

myclient = pymongo.MongoClient('localhost', 27017)
mydb = myclient["XCZJustdb"]
mycol = mydb["sites"]

mylist = [
    { "name": "Taobao", "alexa": "100", "url": "https://www.taobao.com" },
    { "name": "QQ", "alexa": "101", "url": "https://www.qq.com" },
    { "name": "Facebook", "alexa": "10", "url": "https://www.facebook.com" },
    { "name": "知乎", "alexa": "103", "url": "https://www.zhihu.com" },
    { "name": "Github", "alexa": "109", "url": "https://www.github.com" }
]

temp = mycol.insert_many(mylist)
print(temp)